package com.lc.yygh.msm;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)//取消数据源自动配置,因为这个模块没有用数据库，只用到redis
@EnableDiscoveryClient
@ComponentScan(basePackages = "com.lc.yygh")//启动swagger发现没有接口，原来少这个注解
public class ServiceMsmApp {
    public static void main(String[] args) {
        SpringApplication.run(ServiceMsmApp.class, args);
    }
}
